package com.ruoyi.project.business.pickCode.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 取货码对象 yl_pick_code
 * 
 * @author ruoyi
 * @date 2021-04-26
 */
public class YlPickCode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 取货码ID */
    private Long pickId;

    /** 取货码批次ID */
    @Excel(name = "取货码批次ID")
    private Long batchId;

    /** 取货码 */
    @Excel(name = "取货码")
    private Long pickCode;

    /** 机器ID */
    @Excel(name = "机器ID")
    private String machineId;

    /** 机器名称 */
    @Excel(name = "机器名称")
    private String machineName;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 有效起始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效起始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveStartDate;

    /** 有效截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveEndDate;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setPickId(Long pickId)
    {
        this.pickId = pickId;
    }

    public Long getPickId()
    {
        return pickId;
    }
    public void setBatchId(Long batchId)
    {
        this.batchId = batchId;
    }

    public Long getBatchId()
    {
        return batchId;
    }
    public void setPickCode(Long pickCode)
    {
        this.pickCode = pickCode;
    }

    public Long getPickCode()
    {
        return pickCode;
    }
    public void setMachineId(String machineId)
    {
        this.machineId = machineId;
    }

    public String getMachineId()
    {
        return machineId;
    }
    public void setMachineName(String machineName)
    {
        this.machineName = machineName;
    }

    public String getMachineName()
    {
        return machineName;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setEffectiveStartDate(Date effectiveStartDate)
    {
        this.effectiveStartDate = effectiveStartDate;
    }

    public Date getEffectiveStartDate()
    {
        return effectiveStartDate;
    }
    public void setEffectiveEndDate(Date effectiveEndDate)
    {
        this.effectiveEndDate = effectiveEndDate;
    }

    public Date getEffectiveEndDate()
    {
        return effectiveEndDate;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pickId", getPickId())
            .append("batchId", getBatchId())
            .append("pickCode", getPickCode())
            .append("machineId", getMachineId())
            .append("machineName", getMachineName())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("effectiveStartDate", getEffectiveStartDate())
            .append("effectiveEndDate", getEffectiveEndDate())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
